<template>
  <div class="info">
    <div class="info-item" v-for="(v,i) in fakeList" :key="i" @click="toDetails">
      <div class="info-item-left" >
        <h3 >{{v.title}}</h3>
        <p>
          <span class="time">{{v.time}}</span>
          <span class="browse">浏览{{v.browse}}</span>
        </p>
      </div>
      <img :src="v.img" alt="">
    </div>
  </div>
</template>
 
<script >
export default {
  props: {
    list: []
  },
  data() {
    return {
      fakeList:[
        {
          img:require('../assets/zx1.png'),
          title:'分销佣金返现规则',
          time:'2022-07-22',
          browse:'2345',
        },
                {
          img:require('../assets/zx2.png'),
          title:'分销佣金返现规则补充条例',
          time:'2022-07-22',
          browse:'2345',
        },
                {
          img:require('../assets/zx1.png'),
          title:'分销佣金返现规则',
          time:'2022-07-22',
          browse:'2345',
        },
                {
          img:require('../assets/zx2.png'),
          title:'分销佣金返现规则补充条例',
          time:'2022-07-22',
          browse:'2345',
        },
                {
          img:require('../assets/zx1.png'),
          title:'分销佣金返现规则补充条例',
          time:'2022-07-22',
          browse:'2345',
        },
      ]
    }
  },
  methods: {
    toDetails(){
      this.$router.push('/policyDetails');
    }
  }

}
</script>
 
<style lang='scss' scoped>
.info {
  .info-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    &:not(:last-child){
      margin-bottom: 50px;
    }
    .info-item-left{
      width: 370px;
      border-bottom: 1px solid #d2d2d2;
      h3{
        font-size: 30px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #1E1E1E;
        margin-bottom: 25px;
      }
      p{
        display: flex;
        margin-bottom: 10px;
        span{
          font-size: 24px;
          font-family: PingFang SC;
          font-weight: 500;
          color: #909090;
        }
        .time{
          margin-right: 56px;
        }
      }
    }
    img{
      width: 240px;
      height: 106px;
    }
  }
}
</style>